include "relation.thrift"
include "protocolRelation.thrift"
include "serv.thrift"
namespace java com.broada.apm.thrift.service
service RelationController {
	list<relation.Relation> getRelationByAppId(1: string appId);
	protocolRelation.ProtocolRelation getDisRelationById(1: string relationId);
	protocolRelation.ProtocolRelation addDisRelation(1: protocolRelation.ProtocolRelation relation);
	relation.Relation addRelation(1: relation.Relation relation);
	relation.Relation deleteRelation(1: relation.Relation relation);
	relation.Relation getRelationById(1: string id);
	list<relation.Relation> deleteRelationByAppId(1: string appId);
	list<relation.Relation> deleteRelationByFromOrTo(1: list<string> serviceIds);
	list<relation.Relation> getRelationByFromOrTo(1: list<string> serviceIds);
	list<relation.Relation> getRelationByFromAndTo(1: list<string> fromSerIds, 2:list<string> toSerIds);
	list<protocolRelation.ProtocolRelation> getDisRelationByService(1: serv.Service serv);
	protocolRelation.ProtocolRelation deleteDisRelation(1: protocolRelation.ProtocolRelation relation);
	list<protocolRelation.ProtocolRelation> getDisRelationBySrcIp(1: i64 srcIp);
	list<protocolRelation.ProtocolRelation> getDisRelationByServiceId(1: string serviceId);
}

